]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
audioDeviceSelection: Move a method to the new coding style ...
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 19 Apr 2021 15:46:23 +0000 (17:46 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 19 Apr 2021 17:12:59 +0000 (19:12 +0200)
... before touching its code in the next commit.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4139

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1819>

js/ui/audioDeviceSelection.js

index 07b817133909c1985a8b8a757c2b6c4d28aa0081..abd8efaaed1134ca756300e764589fbb54ae0ca5 100644 (file)
@@ -51,12 +51,16 @@ var AudioDeviceSelectionDialog = GObject.registerClass({
         this.contentLayout.add_child(content);
 
         if (Main.sessionMode.allowSettings) {
-            this.addButton({ action: this._openSettings.bind(this),
-                             label: _("Sound Settings") });
+            this.addButton({
+                action: this._openSettings.bind(this),
+                label: _('Sound Settings'),
+            });
         }
-        this.addButton({ action: this.close.bind(this),
-                         label: _("Cancel"),
-                         key: Clutter.KEY_Escape });
+        this.addButton({
+            action: this.close.bind(this),
+            label: _('Cancel'),
+            key: Clutter.KEY_Escape,
+        });
     }
 
     _getDeviceLabel(device) {